package com.woniuxy.voice.config;

import com.baidu.aip.speech.AipSpeech;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BaiduConfig {

    // 替换为你的API Key和Secret Key
    private static final String APP_ID = "119516520";
    private static final String API_KEY = "S65lTU4228uqAn7AjxJfAe8I";
    private static final String SECRET_KEY = "mur8SCKZve352MEr5W4U59ePHbLQD55o";

    @Bean
    public AipSpeech baiduSpeechClient() {
        // 初始化百度语音识别客户端
        return new AipSpeech(APP_ID, API_KEY, SECRET_KEY);
    }
}